#ifndef STREAMRECORDERCONFIG_H
#define STREAMRECORDERCONFIG_H

#include <QDir>
#include <QSize>
#include <QStringList>

struct StreamInfo
{
    int audio_channels = 0;
    int min_bitrate = 0;
    int max_bitrate = 0;
    int default_bitrate = 0;
    QSize resolution { 0, 0 };
};

struct StreamRecorderConfig
{
    QString inputUrl;
    QDir outputDir;
    QString outputName = "output.mp4";
    QStringList customArgs;
    int maxRetries = 3;
    int retryInterval = 5000;
    bool hwAccel = false;
    int maxBandwidth = 80000;
    int segmentDuration = 1800; // 分段时长（秒）
};

#endif // STREAMRECORDERCONFIG_H
